﻿#region Using directives

using System;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;

using GPSTrackingDBV2.Entities;
using GPSTrackingDBV2.Data;

#endregion

namespace GPSTrackingDBV2.Data.Bases
{	
	///<summary>
	/// This class is the base class for any <see cref="NotificationsProviderBase"/> implementation.
	/// It exposes CRUD methods as well as selecting on index, foreign keys and custom stored procedures.
	///</summary>
	public abstract partial class NotificationsProviderBaseCore : EntityProviderBase<GPSTrackingDBV2.Entities.Notifications, GPSTrackingDBV2.Entities.NotificationsKey>
	{		
		#region Get from Many To Many Relationship Functions
		#region GetByGeoFenceIdFromNotificationByGeoFencesByGpsStock
		
		/// <summary>
		///		Gets Notifications objects from the datasource by GeoFenceID in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table GeoFences
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="_geoFenceId"></param>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByGeoFenceIdFromNotificationByGeoFencesByGpsStock(System.Int32 _geoFenceId)
		{
			int count = -1;
			return GetByGeoFenceIdFromNotificationByGeoFencesByGpsStock(null,_geoFenceId, 0, int.MaxValue, out count);
			
		}
		
		/// <summary>
		///		Gets GPSTrackingDBV2.Entities.Notifications objects from the datasource by GeoFenceID in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table GeoFences
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_geoFenceId"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Notifications objects.</returns>
		public TList<Notifications> GetByGeoFenceIdFromNotificationByGeoFencesByGpsStock(System.Int32 _geoFenceId, int start, int pageLength)
		{
			int count = -1;
			return GetByGeoFenceIdFromNotificationByGeoFencesByGpsStock(null, _geoFenceId, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Notifications objects from the datasource by GeoFenceID in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table GeoFences
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_geoFenceId"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByGeoFenceIdFromNotificationByGeoFencesByGpsStock(TransactionManager transactionManager, System.Int32 _geoFenceId)
		{
			int count = -1;
			return GetByGeoFenceIdFromNotificationByGeoFencesByGpsStock(transactionManager, _geoFenceId, 0, int.MaxValue, out count);
		}
		
		
		/// <summary>
		///		Gets Notifications objects from the datasource by GeoFenceID in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table GeoFences
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_geoFenceId"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByGeoFenceIdFromNotificationByGeoFencesByGpsStock(TransactionManager transactionManager, System.Int32 _geoFenceId,int start, int pageLength)
		{
			int count = -1;
			return GetByGeoFenceIdFromNotificationByGeoFencesByGpsStock(transactionManager, _geoFenceId, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Notifications objects from the datasource by GeoFenceID in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table GeoFences
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="_geoFenceId"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByGeoFenceIdFromNotificationByGeoFencesByGpsStock(System.Int32 _geoFenceId,int start, int pageLength, out int count)
		{
			
			return GetByGeoFenceIdFromNotificationByGeoFencesByGpsStock(null, _geoFenceId, start, pageLength, out count);
		}


		/// <summary>
		///		Gets Notifications objects from the datasource by GeoFenceID in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table GeoFences
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <param name="_geoFenceId"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Notifications objects.</returns>
		public abstract TList<Notifications> GetByGeoFenceIdFromNotificationByGeoFencesByGpsStock(TransactionManager transactionManager,System.Int32 _geoFenceId, int start, int pageLength, out int count);
		
		#endregion GetByGeoFenceIdFromNotificationByGeoFencesByGpsStock
		
		#region GetByGpsImeiFromNotificationByGeoFencesByGpsStock
		
		/// <summary>
		///		Gets Notifications objects from the datasource by GPSImei in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table GPSStock
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="_gpsImei"></param>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByGpsImeiFromNotificationByGeoFencesByGpsStock(System.String _gpsImei)
		{
			int count = -1;
			return GetByGpsImeiFromNotificationByGeoFencesByGpsStock(null,_gpsImei, 0, int.MaxValue, out count);
			
		}
		
		/// <summary>
		///		Gets GPSTrackingDBV2.Entities.Notifications objects from the datasource by GPSImei in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table GPSStock
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_gpsImei"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Notifications objects.</returns>
		public TList<Notifications> GetByGpsImeiFromNotificationByGeoFencesByGpsStock(System.String _gpsImei, int start, int pageLength)
		{
			int count = -1;
			return GetByGpsImeiFromNotificationByGeoFencesByGpsStock(null, _gpsImei, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Notifications objects from the datasource by GPSImei in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table GPSStock
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_gpsImei"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByGpsImeiFromNotificationByGeoFencesByGpsStock(TransactionManager transactionManager, System.String _gpsImei)
		{
			int count = -1;
			return GetByGpsImeiFromNotificationByGeoFencesByGpsStock(transactionManager, _gpsImei, 0, int.MaxValue, out count);
		}
		
		
		/// <summary>
		///		Gets Notifications objects from the datasource by GPSImei in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table GPSStock
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_gpsImei"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByGpsImeiFromNotificationByGeoFencesByGpsStock(TransactionManager transactionManager, System.String _gpsImei,int start, int pageLength)
		{
			int count = -1;
			return GetByGpsImeiFromNotificationByGeoFencesByGpsStock(transactionManager, _gpsImei, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Notifications objects from the datasource by GPSImei in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table GPSStock
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="_gpsImei"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByGpsImeiFromNotificationByGeoFencesByGpsStock(System.String _gpsImei,int start, int pageLength, out int count)
		{
			
			return GetByGpsImeiFromNotificationByGeoFencesByGpsStock(null, _gpsImei, start, pageLength, out count);
		}


		/// <summary>
		///		Gets Notifications objects from the datasource by GPSImei in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table GPSStock
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <param name="_gpsImei"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Notifications objects.</returns>
		public abstract TList<Notifications> GetByGpsImeiFromNotificationByGeoFencesByGpsStock(TransactionManager transactionManager,System.String _gpsImei, int start, int pageLength, out int count);
		
		#endregion GetByGpsImeiFromNotificationByGeoFencesByGpsStock
		
		#region GetByUsernameCompanyIdFromNotificationByGeoFencesByGpsStock
		
		/// <summary>
		///		Gets Notifications objects from the datasource by Username in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table Users
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_companyId"></param>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByUsernameCompanyIdFromNotificationByGeoFencesByGpsStock(System.String _username, System.Int32 _companyId)
		{
			int count = -1;
			return GetByUsernameCompanyIdFromNotificationByGeoFencesByGpsStock(null,_username, _companyId, 0, int.MaxValue, out count);
			
		}
		
		/// <summary>
		///		Gets GPSTrackingDBV2.Entities.Notifications objects from the datasource by Username in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table Users
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_username"></param>
		/// <param name="_companyId"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Notifications objects.</returns>
		public TList<Notifications> GetByUsernameCompanyIdFromNotificationByGeoFencesByGpsStock(System.String _username, System.Int32 _companyId, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernameCompanyIdFromNotificationByGeoFencesByGpsStock(null, _username, _companyId, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Notifications objects from the datasource by Username in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table Users
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_companyId"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByUsernameCompanyIdFromNotificationByGeoFencesByGpsStock(TransactionManager transactionManager, System.String _username, System.Int32 _companyId)
		{
			int count = -1;
			return GetByUsernameCompanyIdFromNotificationByGeoFencesByGpsStock(transactionManager, _username, _companyId, 0, int.MaxValue, out count);
		}
		
		
		/// <summary>
		///		Gets Notifications objects from the datasource by Username in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table Users
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_companyId"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByUsernameCompanyIdFromNotificationByGeoFencesByGpsStock(TransactionManager transactionManager, System.String _username, System.Int32 _companyId,int start, int pageLength)
		{
			int count = -1;
			return GetByUsernameCompanyIdFromNotificationByGeoFencesByGpsStock(transactionManager, _username, _companyId, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Notifications objects from the datasource by Username in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table Users
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_companyId"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByUsernameCompanyIdFromNotificationByGeoFencesByGpsStock(System.String _username, System.Int32 _companyId,int start, int pageLength, out int count)
		{
			
			return GetByUsernameCompanyIdFromNotificationByGeoFencesByGpsStock(null, _username, _companyId, start, pageLength, out count);
		}


		/// <summary>
		///		Gets Notifications objects from the datasource by Username in the
		///		NotificationByGeoFencesByGPSStock table. Table Notifications is related to table Users
		///		through the (M:N) relationship defined in the NotificationByGeoFencesByGPSStock table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <param name="_username"></param>
		/// <param name="_companyId"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Notifications objects.</returns>
		public abstract TList<Notifications> GetByUsernameCompanyIdFromNotificationByGeoFencesByGpsStock(TransactionManager transactionManager,System.String _username, System.Int32 _companyId, int start, int pageLength, out int count);
		
		#endregion GetByUsernameCompanyIdFromNotificationByGeoFencesByGpsStock
		
		#region GetByCompanyIdFromNotificationsByCompanies
		
		/// <summary>
		///		Gets Notifications objects from the datasource by CompanyID in the
		///		NotificationsByCompanies table. Table Notifications is related to table Companies
		///		through the (M:N) relationship defined in the NotificationsByCompanies table.
		/// </summary>
		/// <param name="_companyId"></param>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByCompanyIdFromNotificationsByCompanies(System.Int32 _companyId)
		{
			int count = -1;
			return GetByCompanyIdFromNotificationsByCompanies(null,_companyId, 0, int.MaxValue, out count);
			
		}
		
		/// <summary>
		///		Gets GPSTrackingDBV2.Entities.Notifications objects from the datasource by CompanyID in the
		///		NotificationsByCompanies table. Table Notifications is related to table Companies
		///		through the (M:N) relationship defined in the NotificationsByCompanies table.
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_companyId"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Notifications objects.</returns>
		public TList<Notifications> GetByCompanyIdFromNotificationsByCompanies(System.Int32 _companyId, int start, int pageLength)
		{
			int count = -1;
			return GetByCompanyIdFromNotificationsByCompanies(null, _companyId, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Notifications objects from the datasource by CompanyID in the
		///		NotificationsByCompanies table. Table Notifications is related to table Companies
		///		through the (M:N) relationship defined in the NotificationsByCompanies table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_companyId"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByCompanyIdFromNotificationsByCompanies(TransactionManager transactionManager, System.Int32 _companyId)
		{
			int count = -1;
			return GetByCompanyIdFromNotificationsByCompanies(transactionManager, _companyId, 0, int.MaxValue, out count);
		}
		
		
		/// <summary>
		///		Gets Notifications objects from the datasource by CompanyID in the
		///		NotificationsByCompanies table. Table Notifications is related to table Companies
		///		through the (M:N) relationship defined in the NotificationsByCompanies table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_companyId"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByCompanyIdFromNotificationsByCompanies(TransactionManager transactionManager, System.Int32 _companyId,int start, int pageLength)
		{
			int count = -1;
			return GetByCompanyIdFromNotificationsByCompanies(transactionManager, _companyId, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Notifications objects from the datasource by CompanyID in the
		///		NotificationsByCompanies table. Table Notifications is related to table Companies
		///		through the (M:N) relationship defined in the NotificationsByCompanies table.
		/// </summary>
		/// <param name="_companyId"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByCompanyIdFromNotificationsByCompanies(System.Int32 _companyId,int start, int pageLength, out int count)
		{
			
			return GetByCompanyIdFromNotificationsByCompanies(null, _companyId, start, pageLength, out count);
		}


		/// <summary>
		///		Gets Notifications objects from the datasource by CompanyID in the
		///		NotificationsByCompanies table. Table Notifications is related to table Companies
		///		through the (M:N) relationship defined in the NotificationsByCompanies table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <param name="_companyId"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Notifications objects.</returns>
		public abstract TList<Notifications> GetByCompanyIdFromNotificationsByCompanies(TransactionManager transactionManager,System.Int32 _companyId, int start, int pageLength, out int count);
		
		#endregion GetByCompanyIdFromNotificationsByCompanies
		
		#region GetByGpsImeiFromNotificationsByGps
		
		/// <summary>
		///		Gets Notifications objects from the datasource by GPSImei in the
		///		NotificationsByGPS table. Table Notifications is related to table GPSStock
		///		through the (M:N) relationship defined in the NotificationsByGPS table.
		/// </summary>
		/// <param name="_gpsImei"></param>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByGpsImeiFromNotificationsByGps(System.String _gpsImei)
		{
			int count = -1;
			return GetByGpsImeiFromNotificationsByGps(null,_gpsImei, 0, int.MaxValue, out count);
			
		}
		
		/// <summary>
		///		Gets GPSTrackingDBV2.Entities.Notifications objects from the datasource by GPSImei in the
		///		NotificationsByGPS table. Table Notifications is related to table GPSStock
		///		through the (M:N) relationship defined in the NotificationsByGPS table.
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_gpsImei"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Notifications objects.</returns>
		public TList<Notifications> GetByGpsImeiFromNotificationsByGps(System.String _gpsImei, int start, int pageLength)
		{
			int count = -1;
			return GetByGpsImeiFromNotificationsByGps(null, _gpsImei, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Notifications objects from the datasource by GPSImei in the
		///		NotificationsByGPS table. Table Notifications is related to table GPSStock
		///		through the (M:N) relationship defined in the NotificationsByGPS table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_gpsImei"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByGpsImeiFromNotificationsByGps(TransactionManager transactionManager, System.String _gpsImei)
		{
			int count = -1;
			return GetByGpsImeiFromNotificationsByGps(transactionManager, _gpsImei, 0, int.MaxValue, out count);
		}
		
		
		/// <summary>
		///		Gets Notifications objects from the datasource by GPSImei in the
		///		NotificationsByGPS table. Table Notifications is related to table GPSStock
		///		through the (M:N) relationship defined in the NotificationsByGPS table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_gpsImei"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByGpsImeiFromNotificationsByGps(TransactionManager transactionManager, System.String _gpsImei,int start, int pageLength)
		{
			int count = -1;
			return GetByGpsImeiFromNotificationsByGps(transactionManager, _gpsImei, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Notifications objects from the datasource by GPSImei in the
		///		NotificationsByGPS table. Table Notifications is related to table GPSStock
		///		through the (M:N) relationship defined in the NotificationsByGPS table.
		/// </summary>
		/// <param name="_gpsImei"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Notifications objects.</returns>
		public TList<Notifications> GetByGpsImeiFromNotificationsByGps(System.String _gpsImei,int start, int pageLength, out int count)
		{
			
			return GetByGpsImeiFromNotificationsByGps(null, _gpsImei, start, pageLength, out count);
		}


		/// <summary>
		///		Gets Notifications objects from the datasource by GPSImei in the
		///		NotificationsByGPS table. Table Notifications is related to table GPSStock
		///		through the (M:N) relationship defined in the NotificationsByGPS table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <param name="_gpsImei"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Notifications objects.</returns>
		public abstract TList<Notifications> GetByGpsImeiFromNotificationsByGps(TransactionManager transactionManager,System.String _gpsImei, int start, int pageLength, out int count);
		
		#endregion GetByGpsImeiFromNotificationsByGps
		
		#endregion	
		
		#region Delete Methods

		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to delete.</param>
		/// <returns>Returns true if operation suceeded.</returns>
		public override bool Delete(TransactionManager transactionManager, GPSTrackingDBV2.Entities.NotificationsKey key)
		{
			return Delete(transactionManager, key.NotificationId);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="_notificationId">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public bool Delete(System.Int32 _notificationId)
		{
			return Delete(null, _notificationId);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_notificationId">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public abstract bool Delete(TransactionManager transactionManager, System.Int32 _notificationId);		
		
		#endregion Delete Methods
		
		#region Get By Foreign Key Functions
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_Notifications_NotificationType key.
		///		FK_Notifications_NotificationType Description: 
		/// </summary>
		/// <param name="_notificationTypeId"></param>
		/// <returns>Returns a typed collection of GPSTrackingDBV2.Entities.Notifications objects.</returns>
		public TList<Notifications> GetByNotificationTypeId(System.String _notificationTypeId)
		{
			int count = -1;
			return GetByNotificationTypeId(_notificationTypeId, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_Notifications_NotificationType key.
		///		FK_Notifications_NotificationType Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_notificationTypeId"></param>
		/// <returns>Returns a typed collection of GPSTrackingDBV2.Entities.Notifications objects.</returns>
		/// <remarks></remarks>
		public TList<Notifications> GetByNotificationTypeId(TransactionManager transactionManager, System.String _notificationTypeId)
		{
			int count = -1;
			return GetByNotificationTypeId(transactionManager, _notificationTypeId, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_Notifications_NotificationType key.
		///		FK_Notifications_NotificationType Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_notificationTypeId"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of GPSTrackingDBV2.Entities.Notifications objects.</returns>
		public TList<Notifications> GetByNotificationTypeId(TransactionManager transactionManager, System.String _notificationTypeId, int start, int pageLength)
		{
			int count = -1;
			return GetByNotificationTypeId(transactionManager, _notificationTypeId, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_Notifications_NotificationType key.
		///		fkNotificationsNotificationType Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_notificationTypeId"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of GPSTrackingDBV2.Entities.Notifications objects.</returns>
		public TList<Notifications> GetByNotificationTypeId(System.String _notificationTypeId, int start, int pageLength)
		{
			int count =  -1;
			return GetByNotificationTypeId(null, _notificationTypeId, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_Notifications_NotificationType key.
		///		fkNotificationsNotificationType Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_notificationTypeId"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of GPSTrackingDBV2.Entities.Notifications objects.</returns>
		public TList<Notifications> GetByNotificationTypeId(System.String _notificationTypeId, int start, int pageLength,out int count)
		{
			return GetByNotificationTypeId(null, _notificationTypeId, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_Notifications_NotificationType key.
		///		FK_Notifications_NotificationType Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_notificationTypeId"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of GPSTrackingDBV2.Entities.Notifications objects.</returns>
		public abstract TList<Notifications> GetByNotificationTypeId(TransactionManager transactionManager, System.String _notificationTypeId, int start, int pageLength, out int count);
		
		#endregion

		#region Get By Index Functions
		
		/// <summary>
		/// 	Gets a row from the DataSource based on its primary key.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to retrieve.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <returns>Returns an instance of the Entity class.</returns>
		public override GPSTrackingDBV2.Entities.Notifications Get(TransactionManager transactionManager, GPSTrackingDBV2.Entities.NotificationsKey key, int start, int pageLength)
		{
			return GetByNotificationId(transactionManager, key.NotificationId, start, pageLength);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key PK_Notifications_1 index.
		/// </summary>
		/// <param name="_notificationId"></param>
		/// <returns>Returns an instance of the <see cref="GPSTrackingDBV2.Entities.Notifications"/> class.</returns>
		public GPSTrackingDBV2.Entities.Notifications GetByNotificationId(System.Int32 _notificationId)
		{
			int count = -1;
			return GetByNotificationId(null,_notificationId, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_Notifications_1 index.
		/// </summary>
		/// <param name="_notificationId"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="GPSTrackingDBV2.Entities.Notifications"/> class.</returns>
		public GPSTrackingDBV2.Entities.Notifications GetByNotificationId(System.Int32 _notificationId, int start, int pageLength)
		{
			int count = -1;
			return GetByNotificationId(null, _notificationId, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_Notifications_1 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_notificationId"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="GPSTrackingDBV2.Entities.Notifications"/> class.</returns>
		public GPSTrackingDBV2.Entities.Notifications GetByNotificationId(TransactionManager transactionManager, System.Int32 _notificationId)
		{
			int count = -1;
			return GetByNotificationId(transactionManager, _notificationId, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_Notifications_1 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_notificationId"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="GPSTrackingDBV2.Entities.Notifications"/> class.</returns>
		public GPSTrackingDBV2.Entities.Notifications GetByNotificationId(TransactionManager transactionManager, System.Int32 _notificationId, int start, int pageLength)
		{
			int count = -1;
			return GetByNotificationId(transactionManager, _notificationId, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_Notifications_1 index.
		/// </summary>
		/// <param name="_notificationId"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="GPSTrackingDBV2.Entities.Notifications"/> class.</returns>
		public GPSTrackingDBV2.Entities.Notifications GetByNotificationId(System.Int32 _notificationId, int start, int pageLength, out int count)
		{
			return GetByNotificationId(null, _notificationId, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_Notifications_1 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_notificationId"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="GPSTrackingDBV2.Entities.Notifications"/> class.</returns>
		public abstract GPSTrackingDBV2.Entities.Notifications GetByNotificationId(TransactionManager transactionManager, System.Int32 _notificationId, int start, int pageLength, out int count);
						
		#endregion "Get By Index Functions"
	
		#region Custom Methods
		
		
		#endregion

		#region Helper Functions	
		
		/// <summary>
		/// Fill a TList&lt;Notifications&gt; From a DataReader.
		/// </summary>
		/// <param name="reader">Datareader</param>
		/// <param name="rows">The collection to fill</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">number of rows.</param>
		/// <returns>a <see cref="TList&lt;Notifications&gt;"/></returns>
		public static TList<Notifications> Fill(IDataReader reader, TList<Notifications> rows, int start, int pageLength)
		{
			NetTiersProvider currentProvider = DataRepository.Provider;
            bool useEntityFactory = currentProvider.UseEntityFactory;
            bool enableEntityTracking = currentProvider.EnableEntityTracking;
            LoadPolicy currentLoadPolicy = currentProvider.CurrentLoadPolicy;
			Type entityCreationFactoryType = currentProvider.EntityCreationalFactoryType;
			
			// advance to the starting row
			for (int i = 0; i < start; i++)
			{
				if (!reader.Read())
				return rows; // not enough rows, just return
			}
			for (int i = 0; i < pageLength; i++)
			{
				if (!reader.Read())
					break; // we are done
					
				string key = null;
				
				GPSTrackingDBV2.Entities.Notifications c = null;
				if (useEntityFactory)
				{
					key = new System.Text.StringBuilder("Notifications")
					.Append("|").Append((System.Int32)reader[((int)NotificationsColumn.NotificationId - 1)]).ToString();
					c = EntityManager.LocateOrCreate<Notifications>(
					key.ToString(), // EntityTrackingKey
					"Notifications",  //Creational Type
					entityCreationFactoryType,  //Factory used to create entity
					enableEntityTracking); // Track this entity?
				}
				else
				{
					c = new GPSTrackingDBV2.Entities.Notifications();
				}
				
				if (!enableEntityTracking ||
					c.EntityState == EntityState.Added ||
					(enableEntityTracking &&
					
						(
							(currentLoadPolicy == LoadPolicy.PreserveChanges && c.EntityState == EntityState.Unchanged) ||
							(currentLoadPolicy == LoadPolicy.DiscardChanges && c.EntityState != EntityState.Unchanged)
						)
					))
				{
					c.SuppressEntityEvents = true;
					c.NotificationId = (System.Int32)reader[((int)NotificationsColumn.NotificationId - 1)];
					c.OriginalNotificationId = c.NotificationId;
					c.Name = (System.String)reader[((int)NotificationsColumn.Name - 1)];
					c.NotificationMsg = (reader.IsDBNull(((int)NotificationsColumn.NotificationMsg - 1)))?null:(System.String)reader[((int)NotificationsColumn.NotificationMsg - 1)];
					c.NotificationTypeId = (reader.IsDBNull(((int)NotificationsColumn.NotificationTypeId - 1)))?null:(System.String)reader[((int)NotificationsColumn.NotificationTypeId - 1)];
					c.EntityTrackingKey = key;
					c.AcceptChanges();
					c.SuppressEntityEvents = false;
				}
				rows.Add(c);
			}
		return rows;
		}		
		/// <summary>
		/// Refreshes the <see cref="GPSTrackingDBV2.Entities.Notifications"/> object from the <see cref="IDataReader"/>.
		/// </summary>
		/// <param name="reader">The <see cref="IDataReader"/> to read from.</param>
		/// <param name="entity">The <see cref="GPSTrackingDBV2.Entities.Notifications"/> object to refresh.</param>
		public static void RefreshEntity(IDataReader reader, GPSTrackingDBV2.Entities.Notifications entity)
		{
			if (!reader.Read()) return;
			
			entity.NotificationId = (System.Int32)reader[((int)NotificationsColumn.NotificationId - 1)];
			entity.OriginalNotificationId = (System.Int32)reader["NotificationID"];
			entity.Name = (System.String)reader[((int)NotificationsColumn.Name - 1)];
			entity.NotificationMsg = (reader.IsDBNull(((int)NotificationsColumn.NotificationMsg - 1)))?null:(System.String)reader[((int)NotificationsColumn.NotificationMsg - 1)];
			entity.NotificationTypeId = (reader.IsDBNull(((int)NotificationsColumn.NotificationTypeId - 1)))?null:(System.String)reader[((int)NotificationsColumn.NotificationTypeId - 1)];
			entity.AcceptChanges();
		}
		
		/// <summary>
		/// Refreshes the <see cref="GPSTrackingDBV2.Entities.Notifications"/> object from the <see cref="DataSet"/>.
		/// </summary>
		/// <param name="dataSet">The <see cref="DataSet"/> to read from.</param>
		/// <param name="entity">The <see cref="GPSTrackingDBV2.Entities.Notifications"/> object.</param>
		public static void RefreshEntity(DataSet dataSet, GPSTrackingDBV2.Entities.Notifications entity)
		{
			DataRow dataRow = dataSet.Tables[0].Rows[0];
			
			entity.NotificationId = (System.Int32)dataRow["NotificationID"];
			entity.OriginalNotificationId = (System.Int32)dataRow["NotificationID"];
			entity.Name = (System.String)dataRow["Name"];
			entity.NotificationMsg = Convert.IsDBNull(dataRow["NotificationMsg"]) ? null : (System.String)dataRow["NotificationMsg"];
			entity.NotificationTypeId = Convert.IsDBNull(dataRow["NotificationTypeID"]) ? null : (System.String)dataRow["NotificationTypeID"];
			entity.AcceptChanges();
		}
		#endregion 
		
		#region DeepLoad Methods
		/// <summary>
		/// Deep Loads the <see cref="IEntity"/> object with criteria based of the child 
		/// property collections only N Levels Deep based on the <see cref="DeepLoadType"/>.
		/// </summary>
		/// <remarks>
		/// Use this method with caution as it is possible to DeepLoad with Recursion and traverse an entire object graph.
		/// </remarks>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="entity">The <see cref="GPSTrackingDBV2.Entities.Notifications"/> object to load.</param>
		/// <param name="deep">Boolean. A flag that indicates whether to recursively save all Property Collection that are descendants of this instance. If True, saves the complete object graph below this object. If False, saves this object only. </param>
		/// <param name="deepLoadType">DeepLoadType Enumeration to Include/Exclude object property collections from Load.</param>
		/// <param name="childTypes">GPSTrackingDBV2.Entities.Notifications Property Collection Type Array To Include or Exclude from Load</param>
		/// <param name="innerList">A collection of child types for easy access.</param>
	    /// <exception cref="ArgumentNullException">entity or childTypes is null.</exception>
	    /// <exception cref="ArgumentException">deepLoadType has invalid value.</exception>
		public override void DeepLoad(TransactionManager transactionManager, GPSTrackingDBV2.Entities.Notifications entity, bool deep, DeepLoadType deepLoadType, System.Type[] childTypes, DeepSession innerList)
		{
			if(entity == null)
				return;

			#region NotificationTypeIdSource	
			if (CanDeepLoad(entity, "NotificationType|NotificationTypeIdSource", deepLoadType, innerList) 
				&& entity.NotificationTypeIdSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.NotificationTypeId ?? string.Empty);
				NotificationType tmpEntity = EntityManager.LocateEntity<NotificationType>(EntityLocator.ConstructKeyFromPkItems(typeof(NotificationType), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.NotificationTypeIdSource = tmpEntity;
				else
					entity.NotificationTypeIdSource = DataRepository.NotificationTypeProvider.GetByNotificationTypeId(transactionManager, (entity.NotificationTypeId ?? string.Empty));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'NotificationTypeIdSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.NotificationTypeIdSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.NotificationTypeProvider.DeepLoad(transactionManager, entity.NotificationTypeIdSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion NotificationTypeIdSource
			
			//used to hold DeepLoad method delegates and fire after all the local children have been loaded.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();
			// Deep load child collections  - Call GetByNotificationId methods when available
			
			#region NotificationsByCompaniesCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<NotificationsByCompanies>|NotificationsByCompaniesCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'NotificationsByCompaniesCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.NotificationsByCompaniesCollection = DataRepository.NotificationsByCompaniesProvider.GetByNotificationId(transactionManager, entity.NotificationId);

				if (deep && entity.NotificationsByCompaniesCollection.Count > 0)
				{
					deepHandles.Add("NotificationsByCompaniesCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<NotificationsByCompanies>) DataRepository.NotificationsByCompaniesProvider.DeepLoad,
						new object[] { transactionManager, entity.NotificationsByCompaniesCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region NotificationsByGpsCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<NotificationsByGps>|NotificationsByGpsCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'NotificationsByGpsCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.NotificationsByGpsCollection = DataRepository.NotificationsByGpsProvider.GetByNotificationId(transactionManager, entity.NotificationId);

				if (deep && entity.NotificationsByGpsCollection.Count > 0)
				{
					deepHandles.Add("NotificationsByGpsCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<NotificationsByGps>) DataRepository.NotificationsByGpsProvider.DeepLoad,
						new object[] { transactionManager, entity.NotificationsByGpsCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region GpsImeiGpsStockCollection_From_NotificationsByGps
			// RelationshipType.ManyToMany
			if (CanDeepLoad(entity, "List<GpsStock>|GpsImeiGpsStockCollection_From_NotificationsByGps", deepLoadType, innerList))
			{
				entity.GpsImeiGpsStockCollection_From_NotificationsByGps = DataRepository.GpsStockProvider.GetByNotificationIdFromNotificationsByGps(transactionManager, entity.NotificationId);			 
		
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'GpsImeiGpsStockCollection_From_NotificationsByGps' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.GpsImeiGpsStockCollection_From_NotificationsByGps != null)
				{
					deepHandles.Add("GpsImeiGpsStockCollection_From_NotificationsByGps",
						new KeyValuePair<Delegate, object>((DeepLoadHandle< GpsStock >) DataRepository.GpsStockProvider.DeepLoad,
						new object[] { transactionManager, entity.GpsImeiGpsStockCollection_From_NotificationsByGps, deep, deepLoadType, childTypes, innerList }
					));
				}
			}
			#endregion
			
			
			
			#region UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock
			// RelationshipType.ManyToMany
			if (CanDeepLoad(entity, "List<Users>|UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock", deepLoadType, innerList))
			{
				entity.UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock = DataRepository.UsersProvider.GetByNotificationIdFromNotificationByGeoFencesByGpsStock(transactionManager, entity.NotificationId);			 
		
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock != null)
				{
					deepHandles.Add("UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock",
						new KeyValuePair<Delegate, object>((DeepLoadHandle< Users >) DataRepository.UsersProvider.DeepLoad,
						new object[] { transactionManager, entity.UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock, deep, deepLoadType, childTypes, innerList }
					));
				}
			}
			#endregion
			
			
			
			#region GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock
			// RelationshipType.ManyToMany
			if (CanDeepLoad(entity, "List<GeoFences>|GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock", deepLoadType, innerList))
			{
				entity.GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock = DataRepository.GeoFencesProvider.GetByNotificationIdFromNotificationByGeoFencesByGpsStock(transactionManager, entity.NotificationId);			 
		
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock != null)
				{
					deepHandles.Add("GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock",
						new KeyValuePair<Delegate, object>((DeepLoadHandle< GeoFences >) DataRepository.GeoFencesProvider.DeepLoad,
						new object[] { transactionManager, entity.GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock, deep, deepLoadType, childTypes, innerList }
					));
				}
			}
			#endregion
			
			
			
			#region GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock
			// RelationshipType.ManyToMany
			if (CanDeepLoad(entity, "List<GpsStock>|GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock", deepLoadType, innerList))
			{
				entity.GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock = DataRepository.GpsStockProvider.GetByNotificationIdFromNotificationByGeoFencesByGpsStock(transactionManager, entity.NotificationId);			 
		
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock != null)
				{
					deepHandles.Add("GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock",
						new KeyValuePair<Delegate, object>((DeepLoadHandle< GpsStock >) DataRepository.GpsStockProvider.DeepLoad,
						new object[] { transactionManager, entity.GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock, deep, deepLoadType, childTypes, innerList }
					));
				}
			}
			#endregion
			
			
			
			#region CompanyIdCompaniesCollection_From_NotificationsByCompanies
			// RelationshipType.ManyToMany
			if (CanDeepLoad(entity, "List<Companies>|CompanyIdCompaniesCollection_From_NotificationsByCompanies", deepLoadType, innerList))
			{
				entity.CompanyIdCompaniesCollection_From_NotificationsByCompanies = DataRepository.CompaniesProvider.GetByNotificationIdFromNotificationsByCompanies(transactionManager, entity.NotificationId);			 
		
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'CompanyIdCompaniesCollection_From_NotificationsByCompanies' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.CompanyIdCompaniesCollection_From_NotificationsByCompanies != null)
				{
					deepHandles.Add("CompanyIdCompaniesCollection_From_NotificationsByCompanies",
						new KeyValuePair<Delegate, object>((DeepLoadHandle< Companies >) DataRepository.CompaniesProvider.DeepLoad,
						new object[] { transactionManager, entity.CompanyIdCompaniesCollection_From_NotificationsByCompanies, deep, deepLoadType, childTypes, innerList }
					));
				}
			}
			#endregion
			
			
			
			#region NotificationByGeoFencesByGpsStockCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<NotificationByGeoFencesByGpsStock>|NotificationByGeoFencesByGpsStockCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'NotificationByGeoFencesByGpsStockCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.NotificationByGeoFencesByGpsStockCollection = DataRepository.NotificationByGeoFencesByGpsStockProvider.GetByNotificationId(transactionManager, entity.NotificationId);

				if (deep && entity.NotificationByGeoFencesByGpsStockCollection.Count > 0)
				{
					deepHandles.Add("NotificationByGeoFencesByGpsStockCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<NotificationByGeoFencesByGpsStock>) DataRepository.NotificationByGeoFencesByGpsStockProvider.DeepLoad,
						new object[] { transactionManager, entity.NotificationByGeoFencesByGpsStockCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			//Fire all DeepLoad Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			deepHandles = null;
		}
		
		#endregion 
		
		#region DeepSave Methods

		/// <summary>
		/// Deep Save the entire object graph of the GPSTrackingDBV2.Entities.Notifications object with criteria based of the child 
		/// Type property array and DeepSaveType.
		/// </summary>
		/// <param name="transactionManager">The transaction manager.</param>
		/// <param name="entity">GPSTrackingDBV2.Entities.Notifications instance</param>
		/// <param name="deepSaveType">DeepSaveType Enumeration to Include/Exclude object property collections from Save.</param>
		/// <param name="childTypes">GPSTrackingDBV2.Entities.Notifications Property Collection Type Array To Include or Exclude from Save</param>
		/// <param name="innerList">A Hashtable of child types for easy access.</param>
		public override bool DeepSave(TransactionManager transactionManager, GPSTrackingDBV2.Entities.Notifications entity, DeepSaveType deepSaveType, System.Type[] childTypes, DeepSession innerList)
		{	
			if (entity == null)
				return false;
							
			#region Composite Parent Properties
			//Save Source Composite Properties, however, don't call deep save on them.  
			//So they only get saved a single level deep.
			
			#region NotificationTypeIdSource
			if (CanDeepSave(entity, "NotificationType|NotificationTypeIdSource", deepSaveType, innerList) 
				&& entity.NotificationTypeIdSource != null)
			{
				DataRepository.NotificationTypeProvider.Save(transactionManager, entity.NotificationTypeIdSource);
				entity.NotificationTypeId = entity.NotificationTypeIdSource.NotificationTypeId;
			}
			#endregion 
			#endregion Composite Parent Properties

			// Save Root Entity through Provider
			if (!entity.IsDeleted)
				this.Save(transactionManager, entity);
			
			//used to hold DeepSave method delegates and fire after all the local children have been saved.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();

			#region GpsImeiGpsStockCollection_From_NotificationsByGps>
			if (CanDeepSave(entity.GpsImeiGpsStockCollection_From_NotificationsByGps, "List<GpsStock>|GpsImeiGpsStockCollection_From_NotificationsByGps", deepSaveType, innerList))
			{
				if (entity.GpsImeiGpsStockCollection_From_NotificationsByGps.Count > 0 || entity.GpsImeiGpsStockCollection_From_NotificationsByGps.DeletedItems.Count > 0)
				{
					DataRepository.GpsStockProvider.Save(transactionManager, entity.GpsImeiGpsStockCollection_From_NotificationsByGps); 
					deepHandles.Add("GpsImeiGpsStockCollection_From_NotificationsByGps",
						new KeyValuePair<Delegate, object>((DeepSaveHandle<GpsStock>) DataRepository.GpsStockProvider.DeepSave,
						new object[] { transactionManager, entity.GpsImeiGpsStockCollection_From_NotificationsByGps, deepSaveType, childTypes, innerList }
					));
				}
			}
			#endregion 

			#region UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock>
			if (CanDeepSave(entity.UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock, "List<Users>|UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock", deepSaveType, innerList))
			{
				if (entity.UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock.Count > 0 || entity.UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock.DeletedItems.Count > 0)
				{
					DataRepository.UsersProvider.Save(transactionManager, entity.UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock); 
					deepHandles.Add("UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock",
						new KeyValuePair<Delegate, object>((DeepSaveHandle<Users>) DataRepository.UsersProvider.DeepSave,
						new object[] { transactionManager, entity.UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock, deepSaveType, childTypes, innerList }
					));
				}
			}
			#endregion 

			#region GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock>
			if (CanDeepSave(entity.GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock, "List<GeoFences>|GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock", deepSaveType, innerList))
			{
				if (entity.GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock.Count > 0 || entity.GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock.DeletedItems.Count > 0)
				{
					DataRepository.GeoFencesProvider.Save(transactionManager, entity.GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock); 
					deepHandles.Add("GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock",
						new KeyValuePair<Delegate, object>((DeepSaveHandle<GeoFences>) DataRepository.GeoFencesProvider.DeepSave,
						new object[] { transactionManager, entity.GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock, deepSaveType, childTypes, innerList }
					));
				}
			}
			#endregion 

			#region GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock>
			if (CanDeepSave(entity.GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock, "List<GpsStock>|GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock", deepSaveType, innerList))
			{
				if (entity.GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock.Count > 0 || entity.GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock.DeletedItems.Count > 0)
				{
					DataRepository.GpsStockProvider.Save(transactionManager, entity.GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock); 
					deepHandles.Add("GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock",
						new KeyValuePair<Delegate, object>((DeepSaveHandle<GpsStock>) DataRepository.GpsStockProvider.DeepSave,
						new object[] { transactionManager, entity.GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock, deepSaveType, childTypes, innerList }
					));
				}
			}
			#endregion 

			#region CompanyIdCompaniesCollection_From_NotificationsByCompanies>
			if (CanDeepSave(entity.CompanyIdCompaniesCollection_From_NotificationsByCompanies, "List<Companies>|CompanyIdCompaniesCollection_From_NotificationsByCompanies", deepSaveType, innerList))
			{
				if (entity.CompanyIdCompaniesCollection_From_NotificationsByCompanies.Count > 0 || entity.CompanyIdCompaniesCollection_From_NotificationsByCompanies.DeletedItems.Count > 0)
				{
					DataRepository.CompaniesProvider.Save(transactionManager, entity.CompanyIdCompaniesCollection_From_NotificationsByCompanies); 
					deepHandles.Add("CompanyIdCompaniesCollection_From_NotificationsByCompanies",
						new KeyValuePair<Delegate, object>((DeepSaveHandle<Companies>) DataRepository.CompaniesProvider.DeepSave,
						new object[] { transactionManager, entity.CompanyIdCompaniesCollection_From_NotificationsByCompanies, deepSaveType, childTypes, innerList }
					));
				}
			}
			#endregion 
	
			#region List<NotificationsByCompanies>
				if (CanDeepSave(entity.NotificationsByCompaniesCollection, "List<NotificationsByCompanies>|NotificationsByCompaniesCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(NotificationsByCompanies child in entity.NotificationsByCompaniesCollection)
					{
						if(child.NotificationIdSource != null)
						{
								child.NotificationId = child.NotificationIdSource.NotificationId;
						}

						if(child.CompanyIdSource != null)
						{
								child.CompanyId = child.CompanyIdSource.CompanyId;
						}

					}

					if (entity.NotificationsByCompaniesCollection.Count > 0 || entity.NotificationsByCompaniesCollection.DeletedItems.Count > 0)
					{
						//DataRepository.NotificationsByCompaniesProvider.Save(transactionManager, entity.NotificationsByCompaniesCollection);
						
						deepHandles.Add("NotificationsByCompaniesCollection",
						new KeyValuePair<Delegate, object>((DeepSaveHandle< NotificationsByCompanies >) DataRepository.NotificationsByCompaniesProvider.DeepSave,
							new object[] { transactionManager, entity.NotificationsByCompaniesCollection, deepSaveType, childTypes, innerList }
						));
					}
				} 
			#endregion 
				
	
			#region List<NotificationsByGps>
				if (CanDeepSave(entity.NotificationsByGpsCollection, "List<NotificationsByGps>|NotificationsByGpsCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(NotificationsByGps child in entity.NotificationsByGpsCollection)
					{
						if(child.NotificationIdSource != null)
						{
								child.NotificationId = child.NotificationIdSource.NotificationId;
						}

						if(child.GpsImeiSource != null)
						{
								child.GpsImei = child.GpsImeiSource.GpsImei;
						}

					}

					if (entity.NotificationsByGpsCollection.Count > 0 || entity.NotificationsByGpsCollection.DeletedItems.Count > 0)
					{
						//DataRepository.NotificationsByGpsProvider.Save(transactionManager, entity.NotificationsByGpsCollection);
						
						deepHandles.Add("NotificationsByGpsCollection",
						new KeyValuePair<Delegate, object>((DeepSaveHandle< NotificationsByGps >) DataRepository.NotificationsByGpsProvider.DeepSave,
							new object[] { transactionManager, entity.NotificationsByGpsCollection, deepSaveType, childTypes, innerList }
						));
					}
				} 
			#endregion 
				
	
			#region List<NotificationByGeoFencesByGpsStock>
				if (CanDeepSave(entity.NotificationByGeoFencesByGpsStockCollection, "List<NotificationByGeoFencesByGpsStock>|NotificationByGeoFencesByGpsStockCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(NotificationByGeoFencesByGpsStock child in entity.NotificationByGeoFencesByGpsStockCollection)
					{
						if(child.NotificationIdSource != null)
						{
								child.NotificationId = child.NotificationIdSource.NotificationId;
						}

						if(child.UsernameCompanyIdSource != null)
						{
								child.Username = child.UsernameCompanyIdSource.Username;
								child.CompanyId = child.UsernameCompanyIdSource.CompanyId;
						}

						if(child.GeoFenceIdSource != null)
						{
								child.GeoFenceId = child.GeoFenceIdSource.GeoFenceId;
						}

						if(child.GpsImeiSource != null)
						{
								child.GpsImei = child.GpsImeiSource.GpsImei;
						}

					}

					if (entity.NotificationByGeoFencesByGpsStockCollection.Count > 0 || entity.NotificationByGeoFencesByGpsStockCollection.DeletedItems.Count > 0)
					{
						//DataRepository.NotificationByGeoFencesByGpsStockProvider.Save(transactionManager, entity.NotificationByGeoFencesByGpsStockCollection);
						
						deepHandles.Add("NotificationByGeoFencesByGpsStockCollection",
						new KeyValuePair<Delegate, object>((DeepSaveHandle< NotificationByGeoFencesByGpsStock >) DataRepository.NotificationByGeoFencesByGpsStockProvider.DeepSave,
							new object[] { transactionManager, entity.NotificationByGeoFencesByGpsStockCollection, deepSaveType, childTypes, innerList }
						));
					}
				} 
			#endregion 
				
			//Fire all DeepSave Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			
			// Save Root Entity through Provider, if not already saved in delete mode
			if (entity.IsDeleted)
				this.Save(transactionManager, entity);
				

			deepHandles = null;
						
			return true;
		}
		#endregion
	} // end class
	
	#region NotificationsChildEntityTypes
	
	///<summary>
	/// Enumeration used to expose the different child entity types 
	/// for child properties in <c>GPSTrackingDBV2.Entities.Notifications</c>
	///</summary>
	public enum NotificationsChildEntityTypes
	{
		
		///<summary>
		/// Composite Property for <c>NotificationType</c> at NotificationTypeIdSource
		///</summary>
		[ChildEntityType(typeof(NotificationType))]
		NotificationType,
	
		///<summary>
		/// Collection of <c>Notifications</c> as OneToMany for NotificationsByCompaniesCollection
		///</summary>
		[ChildEntityType(typeof(TList<NotificationsByCompanies>))]
		NotificationsByCompaniesCollection,

		///<summary>
		/// Collection of <c>Notifications</c> as OneToMany for NotificationsByGpsCollection
		///</summary>
		[ChildEntityType(typeof(TList<NotificationsByGps>))]
		NotificationsByGpsCollection,

		///<summary>
		/// Collection of <c>Notifications</c> as ManyToMany for GpsStockCollection_From_NotificationsByGps
		///</summary>
		[ChildEntityType(typeof(TList<GpsStock>))]
		GpsImeiGpsStockCollection_From_NotificationsByGps,

		///<summary>
		/// Collection of <c>Notifications</c> as ManyToMany for UsersCollection_From_NotificationByGeoFencesByGpsStock
		///</summary>
		[ChildEntityType(typeof(TList<Users>))]
		UsernameCompanyIdUsersCollection_From_NotificationByGeoFencesByGpsStock,

		///<summary>
		/// Collection of <c>Notifications</c> as ManyToMany for GeoFencesCollection_From_NotificationByGeoFencesByGpsStock
		///</summary>
		[ChildEntityType(typeof(TList<GeoFences>))]
		GeoFenceIdGeoFencesCollection_From_NotificationByGeoFencesByGpsStock,

		///<summary>
		/// Collection of <c>Notifications</c> as ManyToMany for GpsStockCollection_From_NotificationByGeoFencesByGpsStock
		///</summary>
		[ChildEntityType(typeof(TList<GpsStock>))]
		GpsImeiGpsStockCollection_From_NotificationByGeoFencesByGpsStock,

		///<summary>
		/// Collection of <c>Notifications</c> as ManyToMany for CompaniesCollection_From_NotificationsByCompanies
		///</summary>
		[ChildEntityType(typeof(TList<Companies>))]
		CompanyIdCompaniesCollection_From_NotificationsByCompanies,

		///<summary>
		/// Collection of <c>Notifications</c> as OneToMany for NotificationByGeoFencesByGpsStockCollection
		///</summary>
		[ChildEntityType(typeof(TList<NotificationByGeoFencesByGpsStock>))]
		NotificationByGeoFencesByGpsStockCollection,
	}
	
	#endregion NotificationsChildEntityTypes
	
	#region NotificationsFilterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="SqlFilterBuilder&lt;NotificationsColumn&gt;"/> class
	/// that is used exclusively with a <see cref="Notifications"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class NotificationsFilterBuilder : SqlFilterBuilder<NotificationsColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the NotificationsFilterBuilder class.
		/// </summary>
		public NotificationsFilterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the NotificationsFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public NotificationsFilterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the NotificationsFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public NotificationsFilterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion NotificationsFilterBuilder
	
	#region NotificationsParameterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="ParameterizedSqlFilterBuilder&lt;NotificationsColumn&gt;"/> class
	/// that is used exclusively with a <see cref="Notifications"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class NotificationsParameterBuilder : ParameterizedSqlFilterBuilder<NotificationsColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the NotificationsParameterBuilder class.
		/// </summary>
		public NotificationsParameterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the NotificationsParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public NotificationsParameterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the NotificationsParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public NotificationsParameterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion NotificationsParameterBuilder
	
	#region NotificationsSortBuilder
    
    /// <summary>
    /// A strongly-typed instance of the <see cref="SqlSortBuilder&lt;NotificationsColumn&gt;"/> class
	/// that is used exclusively with a <see cref="Notifications"/> object.
    /// </summary>
    [CLSCompliant(true)]
    public class NotificationsSortBuilder : SqlSortBuilder<NotificationsColumn>
    {
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the NotificationsSqlSortBuilder class.
		/// </summary>
		public NotificationsSortBuilder() : base() { }

		#endregion Constructors

    }    
    #endregion NotificationsSortBuilder
	
} // end namespace
